import 'package:flutterprintapp/blue_device_model_entity.dart';

blueDeviceModelEntityFromJson(BlueDeviceModelEntity data, Map<String, dynamic> json) {
	if (json['deviceName'] != null) {
		data.deviceName = json['deviceName']?.toString();
	}
	if (json['deviceAddress'] != null) {
		data.deviceAddress = json['deviceAddress']?.toString();
	}
	return data;
}

Map<String, dynamic> blueDeviceModelEntityToJson(BlueDeviceModelEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['deviceName'] = entity.deviceName;
	data['deviceAddress'] = entity.deviceAddress;
	return data;
}